package com.usian.service;

import com.usian.pojo.Option;
import com.usian.pojo.Paper;
import com.usian.pojo.Topic;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Email 2781921355@qq.com
 * @Author 马忠豪
 * @Date 2023/8/24 21:08
 */
@FeignClient(value = "day101")
public interface TopicService {
    @RequestMapping("paper/findNewPaper")
    public List<Paper> findNewPaper();
    @RequestMapping("topic/getTopicId")
    public List<Topic> getTopicId(@RequestParam("id") Integer id, @RequestParam("consumerId") Integer consumerId);
    @RequestMapping("topic/getName")
    public List<Option> getName(@RequestParam("id") Integer id);
    @RequestMapping("ccpt/addTopicId")
    public void addTopicId(@RequestParam("id") Integer id, @RequestParam("topicId") Integer topicId, @RequestParam("consumerId") Integer consumerId, @RequestParam("answer") String answer);
    @RequestMapping("ccpt/getSelectAnswer")
    public String getSelectAnswer(@RequestParam("consumerId") Integer consumerId, @RequestParam("paperId") Integer paperId, @RequestParam("topicId") Integer topicId);
}
